package book;

public class BookList {
    //定义一个数组（作为书架，每个格内存放具体每本书的数据）
    private Book[] books = new Book[10];
    //定义有效数据（多少本书）的个数
    private int usedSize;

    //定义一个构造方法
    public BookList() {
        books[0] = new Book("三国演义","罗贯中",10,"小说");
        books[1] = new Book("西游记","吴承恩",12,"小说");
        books[2] = new Book("红楼梦","曹雪芹",15,"小说");
        this.usedSize = 3;

    }

}
